class CreateAdministrators < ActiveRecord::Migration
  def self.up
    create_table :administrators do |t|
      t.column "userName",:string
      t.column "passWord",:string
      t.column "loginNum",:int,:default => 0
      t.column "lastLoginTime",:datetime,:default => Time.now
      t.column "email",:string
      t.column "mobile",:string
      t.column "phone",:string
      t.column "status",:int,:default => 1
      t.column "createDate",:datetime,:default => Time.now
    end
  end

  def self.down
    drop_table :administrators
  end
end
